import Vue from 'vue'
import Router from 'vue-router'

import Home from '@/components/home'
import Member from '@/components/member'
import ShopCart from '@/components/shopcart'
import Search from '@/components/search'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: Home
        },
        {
            path: '/member',
            component: Member
        },
        {
            path: '/shopcart',
            component: ShopCart
        },
        {
            path: '/search',
            component: Search
        }

    ],
    linkActiveClass:'mui-active'
})
